Skip to main content

Metadata Configuration

A metadata configuration will need to be generated for each table you'd like to use with Pikaview. These metadata configurations control the data type, formatting, and visibility of each column in the corresponding table. Review the column properties section to see a full list of options.

By default, the Views and scripting needed for managing metadata configurations are contained within the Exchange-PikaviewConfiguration project.

Steps to Generate a New Metadata Configuration

  1. Navigate to <BASE_URL>/data/perspective/client/Exchange-PikaViewConfiguration to view the current list of Configurations.
    screenshot of configuration list page with one example config
    note

    If Pikaview was just recently installed, this page will be completely blank as there are no existing configs.

    If the metadata tables have not been created, the screen below will appear instead: Settings screen that appears if metadata tables are missing Refer to the initial installation instructions and follow the metadata table creation steps to resolve this issue.

Open Configuration Attributes Form

  1. Click the "New Configuration" button to open the Configuration Attributes form. Fill out all relevant information and then click "Build Model" to continue to the Configuration Page. a blank version of the Configuration Attributes form
    info

    To see details on each field of these properties, refer to the Configuration Properties section

Edit Configuration Page

The Configuration page with all columns selected

  1. On the Configuration Page, make configuration edits to the individual columns detected in the specified table. See the Column Properties section for more info, or the common actions section for a full list of actions that can be taken on the Configuration Page.

    warning

    If this configuration is for a View, you will need to manually assign the Primary Key column(s) in order for the configuration to work properly. To learn more, refer to the Column Properties section.

  2. Once satisfied, click the "Save Configuration" button to save all changes.

  3. Navigation back to the Configuration List page.

Preview Data

  1. Back on the Configuration List, you should now see an entry for the configuration you just created. the configuration list page with a new entry for &quot;Demo Test&quot; with the &quot;view table&quot; icon highlighted

  2. Click the View Table table_chart icon to preview the data in the table. one row of data in the demo test config table

This completes the entire process needed to generate a metadata configuration for a single table. If this is the first metadata configured for the table, the configuration will automatically be marked as the default configuration, meaning it will be the default set of metadata used when Pikaview initializes a Service to work with the table data. Additional configurations per table can be generated on top of this initial default one, in case other configuration profiles are desired.

Configurations List

screenshot of configuration list page with one example config
This page shows a list of all configurations detected for the various Views/tables that Pikaview is able to be used with. Each item in the list is composed of a Configuration Card. When highlighted, the Configuration Card gives access to other quick actions like previewing data, editing the configuration, and deleting the configuration.

From this screen you are able to create a new configuration, which needs to be done before Pikaview can access data in a database table. See Steps to Generate a New Metadata Configuration to learn more.

Configuration Card

&#39;static&#39;

Badges

BadgeSymbolDescription
Base ConfigurationBIndicates that this model is the initial configuration for this object.
Table ObjectTIndicates that underlying model object is a SQL table.
View ObjectVIndicates that underlying model object is a SQL view.

View Table table_chart

Directs you to a View which contains an instance of the Table Component which will display the data in this table.

Edit Configuration edit

Directs you to the Configure Page to edit this configuration.

Clone Configuration content_copy

Directs you to the Configure Page with a cloned copy configuration of this configuration, which allows you to create a new configuration that is based on the original.

Delete Configuration delete

Opens a delete confirmation popup which, after confirmation, will permanently delete the configuration.

warning

This action cannot be undone.

Common Actions

Search Configurations

Click the Search search icon next to the page title to open a text field for searching configurations by name.

Create New Configuration

Click the New Configuration button in the top right, this will open the Configuration Attributes form popup, which will allow you to begin creating a new configuration.

Refresh Configurations

Click the refresh refresh icon on the bottom right of the page to force the list of configurations to refresh.

Configure Page

The Configure Page for a new Configuration in the process of being generated

This page is used for editing basic Configuration Properties as well as various Column Properties.

Configuration Properties

note

The schema and object properties are immutable and cannot be changed once the configuration has been created.

info

The Read-Only/Read-Write connections settings can be changed after creation, but note that these settings apply to all configurations in the same schema.

To edit these connections settings on an existing configuration, click the pen icon in the top right of the "Connection" field: The Connection field from the top of the configuration page, showing the current values of &quot;MYSQL/MYSQL&quot; for both Read-Write and Read-Only connections.

The resulting popup can be used to change the connection settings: The edit connection popup open for the &quot;PikaviewTesting&quot; schema with &quot;MYSQL&quot; currently selected for both the Read-Write and Read-Only dropdowns.

PropertyDescription
NameDisplay name for this configuration.
ConnectionGateway database connection to use for this model. Note, the user is able to define both a Read-Only and Read-Write connection under Schema > Advanced:
The advanced connection section, with &quot;MYSQL&quot; selected for both &quot;Read-Write&quot; and &quot;Read-Only&quot;
By default, both connection values will be set to the same value.
SchemaDatabase schema from the selected connection to use for this model.
ObjectDatabase object (table or view) to use for this model.

Column Properties

PropertyJSON KeyDescription
Primary KeyprimaryKeyFor configurations pointed to a table, this will be set automatically based on the detected Primary Key(s) of the table. This field is normally not editable, but for a configuration pointed to a view, this field is editable and must be manually set by the user to function as a unique key for querying purposes. If this is not set on a configuration pointed to a view, then querying a specific row will not be possible.
Visible on TablevisibleDetermines whether the column is displayed on the table View.
Visible On Add Or EditvisibleEditDetermines whether the column is displayed on the form popup.
EditableeditableControls whether the column is editable on the form popup.
SearchablesearchableControls whether the column is searchable in the search bar or advanced search panel.
RequiredrequiredIndicates that the column is required on the form popup.
Ignition Data TypeignDataTypeData type mapping to ignition.
Display NamedisplayNameLabel to display on the table View and form popup.
AlignalignControls how the table row data is aligned for the column.
JustifyjustifyControls how the table row data is justified for the column.
BooleanbooleanDetermines how to display boolean inputs (only applies to boolean type columns).
Date FormatdateFormatFormatting to apply on date values (only applies to date type columns).
Number FormatnumberFormatFormatting to apply on numeric columns (only applies to numeric type columns).
SortsortControls the sort ordering of the table display.
Header Alignheader.alignControls the alignment of the header in the table View.
Header Justifyheader.justifyControls the justification of the header in the table View.
FilterablefilterableDetermines if the column can be filtered.
ResizableresizableControls whether the table column is resizable on the table View.
ValidationvalidatePyDict object for validating column input, refer to Validation properties defined below.
Lookup ConfiglookupConfigPyDict object for joining outside tables, refer to Lookup Config properties defined below.

Validation

PropertyDescription
modeAvailable Modes:
  • No Validation - No column validation (default).
  • Above Setpoint - Check if the input value is higher than setpoint.
  • Below Setpoint - Check if the input value is lower than setpoint.
  • Outside Setpoint - Check if the input value is outside of two setpoints.
  • Between Setpoint - Check if the input value is between two setpoints.
  • Regular Expression - Apply a regular expression string to the field input.
errorMessageMessage displayed when input does not pass validation.

Lookup Config

PropertyDescription
schemaSQL schema to use for lookup.
tableNameSQL table to use for lookup.
keyColumnTable column to use for the JOIN condition.
displayFieldTable column to display on the table view or form popup.
defaultFilterDictControls the values returned in the lookup through a filter.
defaultOrderDictListControls the order the lookup values are presented.

Common Actions

Edit Configuration Name

  1. Click into the Configuration Name text field.
  2. Edit text to the desired configuration name.
  3. Click the Update Configuration button in the top right.

Change Column Display (Sort) Order

  1. Click the toolbox business_center icon in the bottom left of the column customizer.
  2. Click the checkbox to the right of each column name that needs an order change.
  3. Click one of the buttons below Column Order to change the sort order of the columns.
    Available Actions
    • To Top vertical_align_top - Move columns to the beginning of the sort order.
    • Move Up keyboard_arrow_up - Move columns up one position.
    • Move Down keyboard_arrow_down - Move columns down one position.
    • To Bottom vertical_align_bottom - Move columns to the end of the sort order.
  4. After changing the column(s) sort order re-click the toolbox icon business_center icon to exit the column order mode.
  5. Click the Update Configuration button in the top right.
note

Deselect icon layers_clear to the right of the Column Order label will deselect all of the currently selected columns.

Edit Column Properties

  1. Click on the column to edit (when not in the column sort order mode).
  2. The column with it's existing configuration properties will appear to the right of the column selection menu.
  3. Edit the column's properties.
  4. Click the Update Configuration button in the top right.